//
//  UILabel+SXExtention.m
//  SXCategoryProductDemo
//
//  Created by 98linju on 2017/7/18.
//  Copyright © 2017年 98linju. All rights reserved.
//

#import "UILabel+SXExtention.h"

@implementation UILabel (SXExtention)
+ (UILabel *) label:(NSString *)title frame:(CGRect)frame font:(CGFloat)font textColor:(UIColor *)coloer{
    
    UILabel *label = [[UILabel alloc] initWithFrame:frame];
    label.text = title;
    label.numberOfLines = 0;
    label.textColor = coloer;
    label.font = [UIFont systemFontOfSize:(font >= 0 ? font:14)];
    
    return label;
}
+ (UILabel *) label:(NSString *)title font:(CGFloat)font textColor:(UIColor *)color{
    
    UILabel *label = [[UILabel alloc] init];
    label.text = title;
    label.textColor = color;
    label.numberOfLines = 0;
    label.font = [UIFont systemFontOfSize:(font >= 0 ? font:14)];
    
    return label;
}
@end
